package com.modebing.activiti7.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.context.annotation.Configuration;

import java.util.Set;

public class MyThirdListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        Set<String> keySet = delegateTask.getVariables().keySet();

        for (String key : keySet) {
            Object value = delegateTask.getVariables().get(key);
            System.out.println(key+"="+value);
            delegateTask.setVariable(key,value+"[]");
        }
    }
}
